Skip to content

Posting invalid batches with wrong family name and address # Sprint 18#49

Open
shresthichauhan wants to merge 3 commits intolntdev:rest_api_testingfrom
shresthichauhan:rest_validation
Open

Posting invalid batches with wrong family name and address # Sprint 18#49
shresthichauhan wants to merge 3 commits intolntdev:rest_api_testingfrom
shresthichauhan:rest_validation

Conversation

@shresthichauhan
Copy link
Copy Markdown
Collaborator

Signed-off-by: shresthichauhan shresthix.chauhan@intel.com

asing177 and others added 2 commits August 26, 2018 08:46
Contains base class for all test classes
Contains conftest.py for pytest cli and
session fixtures
Contains utils.py for utility methods
required in calling rest api endpoints
and other functions for testing the
endpoints
Contains Test files inside test folders
for rest api testing
Includes thread module for various threads
for multi validator testing
Includes ssh, payload and workload modules for
performing ssh, creating payload and generating
workload using threads

Signed-off-by: aditya singh <adityasingh27@hotmail.com>
Signed-off-by: shresthichauhan <shresthix.chauhan@intel.com>
Signed-off-by: shresthichauhan <shresthix.chauhan@intel.com>


def make_intkey_bad_address(name):
return INTKEY_ADDRESS_PREFIX + hashlib.sha512(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can there be an another way to create bad address , apart from this ?
Like prefix is incorrect etc ...
This one seems to return a shortened address

payload = IntKeyPayload(
verb=verb,name=name,value=1)

addr = make_intkey_bad_address(name)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a need to generalize these methods now ..or they will keep on mounting lines of code....already about to cross 5000 locs


for txn in txns:
data = MessageToDict(
txn,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test cases seem fine ....but we can improve on the structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants